package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author cy
 * @since 2020-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Policy extends Model<Policy> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "policy_id", type = IdType.AUTO)
    private Integer policyId;

    /**
     * 标题
     */
    private String title;

    /**
     * 链接
     */
    private String url;

    /**
     * 发布时间
     */
    private LocalDateTime pubTime;


    @Override
    protected Serializable pkVal() {
        return this.policyId;
    }

}
